<%@ page contentType="text/html; charset=UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="/web/css/shra.css"></link>
<link rel="stylesheet" type="text/css" href="/web/css/style.css"></link>
<script type="text/javascript" src="/seam/resources/lseam.js"></script>
<script type="text/javascript" src="/seam/resources/loginRemote"></script>
<script>
function doLogin() {
	//if(checkLoginForm()) {
		var loginForm = document.forms[0];
		var vo = Lseam.getType("cn.line5.seam.student.StudentVo");
		vo.setStudentLoginAccount(loginForm.loginAccount.value);
		vo.setStudentLoginPassword(loginForm.loginPassword.value);
		Lseam.getComponent("loginRemote").login(vo, function(result) {
    		if(result){
    			window.location.href = "main.seam";
				alert("success");
    		}else {
    			alert("登录名或密码错误，请重新输入！");
    			loginForm.reset();
    		}
    	});
	//}
}
</script>
<title>登录</title>
</head>
<body>
<div id="loginpage">
	<div id="login_logo">
		<img src="/web/images/loginlogo.jpg" width="196" height="60" /> 
		<span>
			<a href="/index.jsp">· 返回首页</a>
		</span>
	</div>
	<div id="login_main">
		<form action="/web/recruit/login.seam" method="post"  >
			<div id="login_con">
				<ul>
					<li>
						用户名：<input name="loginAccount" type="text" size="22"/>
					</li>
					<li>
						密　码：<input name="loginPassword" type="password" size="24"/>
					</li>
					<li>
						<input name="登录" type="button" value="登录" class="loginbut" onclick="doLogin()"/>
						<a href="/web/teacher/teacher_home.jsp">老师登录</a>
						<a href="/web/student/student_home.jsp">忘记密码了？</a>
					</li>
					<li class="huiyuan">
						<a href="recruit_signup.jsp">在线报名</a> 
						&nbsp;&nbsp;&nbsp;
						<a href="recruit_checkout.jsp">预约测试</a>
						&nbsp;&nbsp;&nbsp;
						<a href="recruit_register.jsp">学员注册</a>
					</li>
				</ul>
			</div>
		</form>
		<div id="gonggao">
			<span>学校公告</span>
			<ul class="login_posttitle">
				<li><span>·</span><a href="#">Lily思维英语家长跟班听课制度</a></li>
				<li><span>·</span><a href="#">家长进班听课“试听月”本学期起试运行</a></li>
				<li><span>·</span><a href="#">2010年五一放假通知</a></li>
				<li><span>·</span><a href="#">LILY思维英语2009秋季学期期末考试总结</a></li>
				<li><span>·</span><a href="#">Lily思维英语家长跟班听课制度</a></li>
				<li><span>·</span><a href="#">家长进班听课“试听月”本学期起试运行</a></li>
				<li><span>·</span><a href="#">2010年五一放假通知</a></li>
				<li><span>·</span><a href="#">LILY思维英语2009秋季学期期末考试总结</a></li>
				<li><span>·</span><a href="#">Lily思维英语家长跟班听课制度</a></li>
			</ul>
		</div>
	</div>
</div>
</body>
</html>
